import service from "@/utils/request";
const DEPT_BASE_URL = "/api/";
 import { vendorQuery,vendorAdd } from "@/api/VendorMangMent/model";
class vendor{
  //供应商获取数据
static getList(queryParams?: vendorQuery) {
    return service<any, vendorQuery>({
      url: `${DEPT_BASE_URL}VendorModel/GetVendorModel`,
      method: "post",
      data: queryParams,
    });
  }
//删除
  static deletes(ids:number[]) {
    return service<any, number[]>({
      url: `${DEPT_BASE_URL}VendorModel/DeleteVendormodels`,
      method: "post",
      data:ids
    });
  }
  //添加
  static addpur(data:any) {
    return service({
      url: `/api/VendorModel/AddVendormodels`,
      method: "post",
      data,
    });
  }
  //查看
  static editvendor(vendorSnowId:any) {
    return service({
      url: `/api/VendorModel/DetailVendormodel`,
      method: "get",
      params: {
        vendorSnowId:vendorSnowId
      }
    });
  }
  //供应商修改
  static edit(data:any) {
    return service({
      url: `/api/VendorModel/UpdateVendormodels`,
      method: "put",
      data,
    });
  }
}
export default vendor;

